/**
 *
 */
package kevin.study.zephyr.domain.model;

import kevin.study.zephyr.domain.model.base.Base;
import kevin.study.zephyr.domain.model.ui.UIField;

/**
 * 域,实例的meta ,Field与Form的关系是多对多 ,Field与Item的关系是一对多
 *
 * @author Kevin.Huang
 * @createtime 2007-9-20
 */
public class Field extends Base {

    /**
     * name对应的字段名
     */
    public static final String FILTER_NAME = "name";

    /**
     *
     */
    private static final long serialVersionUID = 1885692163425094911L;

    /**
     * 域的名称
     */
    private String name;

    /**
     * 域的类型
     */
    private String type;

    public UIField getUiField() {
        if (uiField == null) {
            return new UIField();
        } else {
            return uiField;
        }
    }

    public void setUiField(UIField uiField) {
        this.uiField = uiField;
    }

    /**
     * 视图信息
     */
    private UIField uiField;

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
	}

}
